package com.xixiake.activity;

import android.os.Bundle;
import android.view.Window;

import com.xixiake.R;
import com.xixiake.activity.fragment.MainFragment;
import com.xixiake.own_v4.FragmentActivity;
import com.xixiake.own_v4.FragmentManager;

public class MainActivity extends FragmentActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);
        getWindow().setBackgroundDrawable(null);
        FragmentManager fm = getSupportFragmentManager();
        fm.beginTransaction().add(Window.ID_ANDROID_CONTENT, MainFragment.getInstance(),MainFragment.class.getName()).commitAllowingStateLoss();
    }
}
